// eslint-disable-next-line import/no-extraneous-dependencies
import mockjs from 'mockjs';

export default {
  'POST /api/client/add': (req, res) => {
    res.send(
      mockjs.mock(
        {
          ret: 0,
          error: null
        }
      ),
    );
  },
  'POST /api/client/list': (req, res) => {
    res.send(
      mockjs.mock(
        {
          ret: 0,
          data: {
            list: [
              {
                id: 1,
                cusPhone: 12381284951,
                cusName: "张三",
                cusBrand: "品牌1,品牌2,品牌3",
                cusStar: "1星",
                cusDiscount: "90%",
                cusOrder: 13,
                cusAddress: "四川省成都市西源大道",
              },
              {
                id: 2,
                cusPhone: 12381284951,
                cusName: "张三",
                cusBrand: "品牌1,品牌2,品牌3",
                cusStar: "1星",
                cusDiscount: "90%",
                cusOrder: 13,
                cusAddress: "四川省成都市西源大道",
              },
              {
                id: 3,
                cusPhone: 12381284951,
                cusName: "张三",
                cusBrand: "品牌1,品牌2,品牌3",
                cusStar: "1星",
                cusDiscount: "90%",
                cusOrder: 13,
                cusAddress: "四川省成都市西源大道",
              },
              {
                id: 4,
                cusPhone: 12381284951,
                cusName: "张三",
                cusBrand: "品牌1,品牌2,品牌3",
                cusStar: "1星",
                cusDiscount: "90%",
                cusOrder: 13,
                cusAddress: "四川省成都市西源大道",
              }
            ],
            total: 4,
            query: 4
          },
          error: null
        }
      ),
    );
  },
}
